package com.jintoufs.util;

import java.io.InputStream;
import java.util.Properties;

public class JpushSetting {

	private static Properties properties = new Properties();

	public static String appKey;
	public static String masterSecret;
	public static int maxtrytimes;
	static {
		try {
			InputStream fis = Thread.currentThread().getContextClassLoader().getResourceAsStream("applicationContext.properties");
			properties.load(fis);
			appKey = properties.getProperty("jpush.appKey");
			masterSecret = properties.getProperty("jpush.masterSecret");
			maxtrytimes = Integer.parseInt(properties.getProperty("jpush.maxtrytimes"));
			fis.close();
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
}
